const Service = require('egg').Service;

class bbs extends Service {
    /*bbs列表*/
    async bbsList(pageNum,pageSize,type) {
        return  await this.ctx.service.base.getService('/device/bbs/list',{ pageNum,pageSize,type });
    }
    /*bbs简单列表*/
    async bbsListSimple(pageNum,pageSize,type) {
        // type1作业,2招聘,3公告,4下载
        return  await this.ctx.service.base.getService('/device/bbs/listSimple',{ pageNum,pageSize,type });
    }
    /*bbs详情*/
    async bbsDetail(id) {
        return  await this.ctx.service.base.getService('/device/bbs/detail',{ id });
    }

}

module.exports = bbs;




